<route lang="json5">
{
  style: {
    navigationBarTitleText: '工作纪要',
  },
}
</route>

<template>
  <view class="word-note">
    <wd-tabs>
      <wd-tab title="工作填写">
        <WorkContentForm @submit="handleSubmit"></WorkContentForm>
      </wd-tab>
      <wd-tab title="历史记录">
        <HistoryList ref="historyRef"></HistoryList>
      </wd-tab>
    </wd-tabs>
  </view>
</template>

<script setup>
import HistoryList from './components/HistoryList.vue'
import WorkContentForm from './components/WorkContentForm.vue'

const historyRef = ref()

const handleSubmit = () => {
  // 提交成功后，提醒列表页刷新
  historyRef.value.refreshList()
}
</script>

<style lang="scss" scoped></style>
